﻿namespace ImapComponent.Net.Mail.Imap4
{
    using System;

    /// <summary>
    /// Represents system message flags.
    /// </summary>
    [Flags]
    public enum SystemMessageFlags
    {
        /// <summary>
        /// No flags.
        /// </summary>
        None = 0,
        /// <summary>
        /// Message has been read.
        /// </summary>
        Seen = 1,
        /// <summary>
        /// Message has been answered.
        /// </summary>
        Answered = 2,
        /// <summary>
        /// Message is "flagged" for urgent/special attention.
        /// </summary>
        Flagged = 4,
        /// <summary>
        /// Message is "deleted" for removal by later EXPUNGE or CLOSE.
        /// </summary>
        Deleted = 8,
        /// <summary>
        /// Message has not completed composition (marked as a draft).
        /// </summary>
        Draft = 16,
        /// <summary>
        /// Message is "recently" arrived in this mailbox.
        /// </summary>
        Recent = 32,
        /// <summary>
        /// Special flag "\*", it indicates that new flag in mailbox can be created.
        /// </summary>
        CanCreate = 64
    }
}
